<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AvansRS.Domain.Rooster>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th>
                ID
            </th>
            <th>
                RoosterNumber
            </th>
            <th>
                Name
            </th>
            <th>
                Description
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>           
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
            <td>
                <%= Html.Encode(item.RoosterNumber)%>
            </td>
            <td>
                <%= Html.Encode(item.Name)%>
            </td>
            <td>
                <%= Html.Encode(item.Description)%>
            </td>
             <td>
                <%= Html.ActionLink("Edit", "Edit", new {  id=item.ID  }) %> |
            </td>
        </tr>
    
    <% } %>

    </table>

    
    
    
    <p>
        <%= Html.ActionLink("Create New", "RoosterCreate") %>
    </p>

</asp:Content>

